package top.healthylife.gateway.platform.jg.api.api;


import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Service;
import top.healthylife.gateway.core.service.ParentFace;
import top.healthylife.gateway.dto.annotation.ApiServiceExplain;
import top.healthylife.gateway.platform.jg.api.util.JGHttpUtil;
import top.healthylife.gateway.platform.jg.dto.antifraudblacklistv4.req.JGReqBlackListV4Dto;
import top.healthylife.gateway.platform.jg.dto.antifraudblacklistv4.res.JGResBlackListV4Dto;

/**
 * 反欺诈服务-黑名单API v4
 * @author gwx
 * @date 2021/9/6
 */
@Slf4j
@Service
@ApiServiceExplain(price = 20 , apiName = "反欺诈服务-黑名单API v4" , info = "反欺诈服务-黑名单API v4")
public class JGAntifraudBlackListV4Api implements ParentFace<JGReqBlackListV4Dto, JGResBlackListV4Dto> {

    private static final String API_NAME = "/v4/anti-fraud/users/blacklist/check_option";

    @Override
    public JGResBlackListV4Dto execute(JGReqBlackListV4Dto reqDto){
        return JGHttpUtil.httpGetRequest(reqDto,API_NAME, JGResBlackListV4Dto.class);
    }
}
